import React from 'react'
import IconMap from "@/components/IconMap";
import { loginRules } from '@/utils/rules/loginRules';
export default function UpdatePassword({ FormItem, form, Input }) {
    return (
        <>
            <FormItem name="newPassword" rules={loginRules.passwordRule} key="newPassword">
                <Input type="password"
                    placeholder="新的登录密码"
                    prefix={IconMap.passwordIcon}></Input>
            </FormItem>
            <FormItem name="newPwd" rules={loginRules.confirmPasswordRule(form)} key="newPwd">
                <Input
                    type="password"
                    placeholder="请确认输入新的登录密码"
                    prefix={IconMap.passwordIcon}>

                </Input>
            </FormItem>
        </>
    )
}
